package com.ag.lzw.dao;

import java.util.List;

import com.ag.bean.TbTaskAnnex;
import com.ag.dao.TbTaskAnnexDAO;

public class LzwTbTaskAnnexDAO extends TbTaskAnnexDAO{

	public List<TbTaskAnnex> findByTaskId(String id){
		String hql = "From TbTaskAnnex as tta left join fetch tta.tbTask tt  where tt.TId = '"+id+"'";
		return (List<TbTaskAnnex>)getHibernateTemplate().find(hql);	
	}
}
